<?php
/**
 * 作者：New一个
 * 主页：http://www.newyige.com
 * 描述：首页模板
 * 时间：2016.05.16
 */
?>
<!doctype html>
<html xmlns:wb="http://open.weibo.com/wb">
<head>
<meta charset="utf-8">
<title>首页</title>
<style>
* { margin: 0; padding: 0; color: #333 }
li { list-style-type: none }
body { background: #ddd }
.main .title { margin-bottom: 15px; padding: 15px; background: #fff }
.main .title p { line-height: 40px; overflow: hidden }
.main .title p span { float: left }
.main .title p b { float: left }
.main .title p .weibo { padding-top: 7px; height: 33px }
.main { width: 1000px; margin: 0 auto; padding: 15px; background: #eee }
.main li { padding: 15px; margin-bottom: 15px; background: #fff; overflow: hidden }
.main li h3 { float: left; width: 160px; font-size: 100% }
.main li b { float: left; width: 510px; font-size: 100%; font-weight: normal }
.main li p { float: left; width: 300px }
</style>
<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
</head>

<body>
<div class="main">
  <div class="title">
    <h2>WordPress主题选项框架</h2>
    <p>在使用中有任何问题，欢迎反馈给我，可以用以下联系方式跟我交流</p>
    <p><b>微博：</b><span class="weibo">
      <wb:follow-button uid="5769397258" type="red_3" width="100%" height="24" ></wb:follow-button>
      </span></p>
    <p><b>邮箱：</b>admin@newyige.com</p>
    <p><b>QQ：</b><span class="weibo"><a target="_blank" href="http://sighttp.qq.com/authd?IDKEY=f51cc07fc888cf2bf68152f3299031f1cba21a12da383376"><img border="0" src="http://wpa.qq.com/imgd?IDKEY=f51cc07fc888cf2bf68152f3299031f1cba21a12da383376&pic=51" alt="点击这里给我发消息" title="点击这里给我发消息"></a></span>1570457334</p>
  </div>
  <ul>
    <li>
      <h3>名称</h3>
      <b>函数</b>
      <p>输出</p>
    </li>
    <li>
      <h3>文本框</h3>
      <b>echo new_option("text","空值");</b>
      <p><?php echo new_option("text", "空值"); ?></p>
    </li>
    <li>
      <h3>文本域</h3>
      <b>echo new_option("textarea","空值");</b>
      <p><?php echo new_option("textarea", "空值"); ?></p>
    </li>
    <li>
      <h3>自定义单选按钮</h3>
      <b>echo new_option("radio_custom","空值");</b>
      <p><?php echo new_option("radio_custom", "空值"); ?></p>
    </li>
    <li>
      <h3>分类单选按钮</h3>
      <b>echo new_option("radio_category","空值");</b>
      <p><?php echo new_option("radio_category", "空值"); ?></p>
    </li>
    <li>
      <h3>页面单选按钮</h3>
      <b>echo new_option("radio_page","空值");</b>
      <p><?php echo new_option("radio_page", "空值"); ?></p>
    </li>
    <li>
      <h3>自定义复选框</h3>
      <b>if(new_option("checkbox_custom"))<br/>
      　　foreach (new_option("checkbox_category") as $v=>$a)<br/>
      　　　　echo $a.' ';<br/>
      else<br/>
      　　echo '空值';</b>
      <p>
        <?php
		if (new_option("checkbox_custom"))
			foreach (new_option("checkbox_custom") as $v => $a)
				echo $a . ' ';
		else
			echo '空值';
 		?>
      </p>
    </li>
    <li>
      <h3>分类复选框</h3>
      <b>if(new_option("checkbox_category"))<br/>
      　　foreach (new_option("checkbox_category") as $v=>$a)<br/>
      　　　　echo $a.' ';<br/>
      else<br/>
      　　echo '空值';</b>
      <p>
        <?php
		if (new_option("checkbox_custom"))
			foreach (new_option("checkbox_category") as $v => $a)
				echo $a . ' ';
		else
			echo '空值';
 		?>
      </p>
    </li>
    <li>
      <h3>页面复选框</h3>
      <b>if(new_option("checkbox_page"))<br/>
      　　foreach (new_option("checkbox_category") as $v=>$a)<br/>
      　　　　echo $a.' ';<br/>
      else<br/>
      　　echo '空值';</b>
      <p>
        <?php
		if (new_option("checkbox_page"))
			foreach (new_option("checkbox_page") as $v => $a)
				echo $a . ' ';
		else
			echo '空值';
 		?>
      </p>
    </li>
    <li>
      <h3>自定义下拉列表</h3>
      <b>echo new_option("select_custom","空值");</b>
      <p><?php echo new_option("select_custom", "空值"); ?></p>
    </li>
    <li>
      <h3>分类下拉列表</h3>
      <b>echo new_option("select_category","空值");</b>
      <p><?php echo new_option("select_category", "空值"); ?></p>
    </li>
    <li>
      <h3>页面下拉列表</h3>
      <b>echo new_option("select_page","空值");</b>
      <p><?php echo new_option("select_page", "空值"); ?></p>
    </li>
    <li>
      <h3>上传图片</h3>
      <b>echo new_option("upload_custom","空值");</b>
      <p><?php echo new_option("upload_custom", "空值"); ?></p>
    </li>
    <li>
      <h3>颜色选择器</h3>
      <b>echo new_option("color_picker","空值");</b>
      <p><?php echo new_option("color_picker", "空值"); ?></p>
    </li>
  </ul>
</div>
</body>
</html>